<template>
  <div class="header">
    <h1>
      <img src="../assets/logo.jpg" alt="" />
      <span>猫眼电影</span>
    </h1>
  </div>
</template>

<script>
export default {};
</script>

<style scoped lang="scss">
.header {
  position: fixed;
  top: 0;
  left: 0;
  height: 1.1rem;
  width: 100%;
  background-color: red;
  z-index: 2;
  h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.1rem;
    img {
      width: 0.8rem;
      height: 0.8rem;
      border-radius: 50%;
    }
    span {
      font-size: 0.4rem;
      color: #fff;
    }
  }
}
</style>